import request from '@/router/axios';
//  储值 管理
export const getPage = (data) => {
    return request({
        url: '/api/uic-system/fillteam/page',
        method: 'get',
        params: data
    })
}
//查看专用账户变动明细
export const fillteamwaterrecord = (data) => {
    return request({
        url: '/api/uic-system/fillteamremitrecord/page',
        method: 'get',
        params: data
    })
}
// 储值
export const fillteamremitrecordSave = (data) => {
    return request({
        url: '/api/uic-system/fillteamremitrecord/save',
        method: 'POST',
        data
    })
}
// 佳海采购单价管理
export const jhpurchasepricesetting = (data) => {
    return request({
        url: '/api/uic-business/jhpurchasepricesetting/page',
        method: 'get',
        params: data
    })
}

// 添加佳海采购单价
export const jhpurchasepricesettingSave = (data) => {
    return request({
        url: '/api/uic-business/jhpurchasepricesetting/save',
        method: 'POST',
        data
    })
}
//
export const paymentbillrecordSave = (data) => {
    return request({
        url: '/api/uic-business/paymentbillrecord/save',
        method: 'POST',
        data
    })
}
// 应付款列表
export const paymentbill = (data) => {
    return request({
        url: '/api/uic-business/paymentbill/page',
        method: 'get',
        params: data
    })
}
// 应付款 统计
export const paymentbillSummary = (data) => {
    return request({
        url: '/api/uic-business/paymentbill/summary',
        method: 'get',
        params: data
    })
}
// 账单付款记录
export const paymentbillrecord = (data) => {
    return request({
        url: '/api/uic-business/paymentbillrecord/page',
        method: 'get',
        params: data
    })
}
// 账单查看
export const fillstorageorderdetail = (data) => {
    return request({
        url: '/api/uic-system/fillrecorduser/page',
        method: 'get',
        params: data
    })
}
// 客户账单
export const fillteambill = (data) => {
    return request({
        url: '/api/uic-system/fillteambill/page',
        method: 'get',
        params: data
    })
}
// 客户账单
export const fillteambillSummary = (data) => {
    return request({
        url: '/api/uic-system/fillteambill/stat/summary',
        method: 'get',
        params: data
    })
}
// 导出客户账单
export const fillteambillExport = (data) => {
    return request({
        url: '/api/uic-system/fillteambill/export-page',
        method: 'get',
        params: data
    })
}
// 微信账单
export const fillrecorduserWXpage = (data) => {
    return request({
        url: '/api/uic-system/fillrecorduser/wx-page',
        method: 'get',
        params: data
    })
}
export const fillrecorduserWXsummaryByAll = (data) => {
    return request({
        url: '/api/uic-system/fillrecorduser/wx-summaryByAll',
        method: 'get',
        params: data
    })
}

/// 开票中心
export const fillteamreceiptrecord = (data) => {
    return request({
        url: '/api/uic-system/fillteamreceiptrecord/page',
        method: 'get',
        params: data
    })
}
export const fillteamreceiptrecordDetail = (data) => {
    return request({
        url: '/api/uic-system/fillteamreceiptrecord/detail',
        method: 'get',
        params: data
    })
}

export const fillteamreceiptsummary = (data) => {
    return request({
        url: '/api/uic-system/fillteamreceiptrecord/summary',
        method: 'get',
        params: data
    })
}


export const confirmReceipt = (data) => {
    return request({
        url: '/api/uic-system/fillprocureorder/confirmReceipt',
        method: 'PUT',
        data
    })
}

// 分润账单
export const fillprofitsharerbill = (data) => {
    return request({
        url: '/api/uic-system/fillprofitsharerbill/page',
        method: 'get',
        params: data
    })
}
//分润账单->分润记录分页
export const fillShareRecord = (data) => {
    return request({
        url: '/api/uic-system/fillprofitsharerbill/shareRecord/page',
        method: 'get',
        params: data
    })
}
//
export const fillShareExportPage = (data) => {
    return request({
        url: '/api/uic-system/fillprofitsharerbill/export-page',
        method: 'get',
        params: data
    })
}

// 利润分析
export const filltjmachineday = (data) => {
    return request({
        url: '/api/uic-system/filltjmachineday/page',
        method: 'get',
        params: data
    })
}
export const profitStatSummary = (data) => {
    return request({
        url: '/api/uic-system/filltjmachineday/page/profit_stat/summary',
        method: 'get',
        params: data
    })
}
export const fillExportPage = (data) => {
    return request({
        url: '/api/uic-system/filltjmachineday/export-page',
        method: 'get',
        params: data
    })
}
// 申请开票
export const receiptrecordDoReceipt = (data) => {
    return request({
        url: '/api/uic-system/fillteamreceiptrecord/doReceipt',
        method: 'POST',
        data
    })
}
// 新增申请开票记录
export const receiptrecordDoReceiptsave = (data) => {
    return request({
        url: '/api/uic-system/fillteamreceiptrecord/save',
        method: 'POST',
        data
    })
}
// 新增申请wx开票记录
export const receiptwxApplyReceipt = (data) => {
    return request({
        url: '/api/uic-system/fillteamreceiptrecord/wxApplyReceipt',
        method: 'POST',
        data
    })
}
// 分润账单收票
export const updateReceiptStatus = (data) => {
    return request({
        url: '/api/uic-system/fillprofitsharerbill/updateReceiptStatus',
        method: 'POST',
        data
    })
}
// 应收款申请开票
export const paymentbillapplyReceipt = (data) => {
    return request({
        url: '/api/uic-business/paymentbill/applyReceipt',
        method: 'POST',
        data
    })
}

// 利润结算
export const updateSettled = (data) => {
    return request({
        url: '/api/uic-system/fillprofitsharerbill/updateSettled',
        method: 'POST',
        data
    })
}

// 查看附件
export const attachmentDetail = (data) => {
    console.log(data)
    return request({
        url: '/api/uic-system/attachment/list', 
        method: 'get',
        params: data
    })
}